package com.chixing.day04_oop.account;


public class AccountTest {
    public static void main(String[] args) {
        SavingAccount sa = new SavingAccount();
        sa.depoist(0);
        sa.withdraw(20);

        CreditAccount ca = new CreditAccount();
        ca.depoist(200);

        CreditAccount cr1 = new CreditAccount();
        cr1.setAccNo(101);
        cr1.setAccName("张三");
        cr1.setAccBalance(0f);
        cr1.setAccTelno(155663355L);
        cr1.withdraw(1900);
        System.out.println("当前余额:" + cr1.getAccBalance());

    }
}
